import HomePage from '@/pages/HomePage/index.vue'
import Home from '@/components/home/Home.vue'
// import Home from '@/pages/schedulePage/monthlyPlan.vue'
// import Home from '@/pages/schedulePage/doorMachine.vue'

// import Home from '@/pages/schedulePage/CarStatus/shipStatus.vue'
// import Home from '@/pages/BusinessAffairsPage/shipStatusNew/index.vue'

// import Home from '@/pages/remoteSupervision/beltScaleMeasurement/newIndex.vue'
import outServiceManage from '@/pages/SystemPage/outServiceManage/outServiceManage.vue'
import outServiceManageList from '@/pages/SystemPage/outServiceManage/outServiceManageList.vue'
// 船时效率分析
import shipAnalysis from '@/pages/SystemPage/shipAnalysis/index.vue'
// 系统管理-通用设置
// let  systemGeneral = resolve => {require(['@/pages/SystemPage/system/systemGeneral.vue'], resolve)}
import systemGeneral from '@/pages/SystemPage/system/systemGeneral.vue'
// 系统管理-字典管理
// let  DictionariesComponent = resolve => {require(['@/pages/SystemPage/dictionaries/Dictionaries.vue'], resolve)}
import DictionariesComponent from '@/pages/SystemPage/dictionaries/Dictionaries.vue'
// 系统管理-用户管理
// let  UserInfoManage = resolve => {require(['@/pages/SystemPage/userInfo/UserInfomanage.vue'], resolve)}
import UserInfoManage from '@/pages/SystemPage/userInfo/UserInfomanage.vue'
// 系统管理-部门管理
// let  Department = resolve => {require(['@/pages/SystemPage/company/Department.vue'], resolve)}
import Department from '@/pages/SystemPage/company/Department.vue'
// 系统管理-角色管理
// let  RoleManage = resolve => {require(['@/pages/SystemPage/power/RoleManage.vue'], resolve)}
import RoleManage from '@/pages/SystemPage/power/RoleManage.vue'
// 系统管理-菜单管理
// let  MenuManage = resolve => {require(['@/pages/SystemPage/menuManage/Menumanage.vue'], resolve)}
import MenuManage from '@/pages/SystemPage/menuManage/Menumanage.vue'
// 系统管理-版本控制
// let  edition = resolve => {require(['@/pages/SystemPage/edition/edition.vue'], resolve)}
import edition from '@/pages/SystemPage/edition/edition.vue'
// //系统管理-授权管理
// // let  authorize = resolve => {require(['@/pages/SystemPage/edition/edition.vue'], resolve)}
import authorize from '@/pages/SystemPage/authorize/index.vue'
// 系统管理-缓存管理
// let  cacheManagement = resolve => {require(['@/pages/SystemPage/cacheManagement/cacheManagement.vue'], resolve)}
import cacheManagement from '@/pages/SystemPage/cacheManagement/cacheManagement.vue'
// 系统管理-数据导入
import dataImport from '@/pages/SystemPage/dataImport/index.vue'
// 系统管理-消息关联用户
import msgToUser from '@/pages/SystemPage/msgToUser/msgToUser.vue'
// 系统管理-第三方授权
import exThirdAuth from '@/pages/SystemPage/exThirdAuth/index.vue'
// 系统管理-权限管理
import exAuthority from '@/pages/SystemPage/exAuthority/index.vue'
// 系统管理-操作日志
import operationLogList from '@/pages/SystemPage/oper/operationLogList.vue'
// 系统管理-登录日志
import loginLogList from '@/pages/SystemPage/login/loginLogList.vue'
// 系统管理-登录日志
import parameter from '@/pages/SystemPage/parameter/index.vue'
// 客户审核
// let  metadataCustomerAudit = resolve => {require(['@/pages/Basic/metadataCustomerAudit.vue'], resolve)}
import metadataCustomerAudit from '@/pages/Basic/metadataCustomerAudit.vue'
// 元数据系统-驳船资料
// let  metadataBarge = resolve => {require(['@/pages/Basic/metadataBarge.vue'], resolve)}
import metadataBarge from '@/pages/Basic/metadataBarge.vue'

// 元数据系统-机械型号
// let  metadatamach = resolve => {require(['@/pages/Basic/metadatamach.vue'], resolve)}
import metadatamach from '@/pages/Basic/metadatamach.vue'

// 元数据系统-海轮资料
// let  metadataSeagoingvessel = resolve => {require(['@/pages/Basic/metadataSeagoingvessel.vue'], resolve)}
import metadataSeagoingvessel from '@/pages/Basic/metadataSeagoingvessel.vue'
// 元数据系统-海轮审核
// let  metadataSeagoingAudit = resolve => {require(['@/pages/Basic/metadataSeagoingAudit.vue'], resolve)}
import metadataSeagoingAudit from '@/pages/Basic/metadataSeagoingAudit.vue'

// 元数据系统-港口信息
// let  portInfo = resolve => {require(['@/pages/Basic/portInfo.vue'], resolve)}
import portInfo from '@/pages/Basic/portInfo.vue'
// 元数据系统-拖轮资料
// let  metadataTug = resolve => {require(['@/pages/Basic/metadataTug.vue'], resolve)}
import metadataTug from '@/pages/Basic/metadataTug.vue'
// 元数据系统-泊位信息
// let  metadataBerth = resolve => {require(['@/pages/Basic/metadataBerth.vue'], resolve)}
import metadataBerth from '@/pages/Basic/metadataBerth.vue'
// 元数据系统-停时原因
import metadataStop from '@/pages/Basic/metadataStop.vue'
// 元数据系统-货物信息
// let  metadataGoods = resolve => {require(['@/pages/Basic/metadataGoods.vue'], resolve)}
import metadataGoods from '@/pages/Basic/metadataGoods.vue'
// 元数据系统-库场信息
// let  metadataStorehouse = resolve => {require(['@/pages/Basic/metadataStorehouse.vue'], resolve)}
import metadataStorehouse from '@/pages/Basic/metadataStorehouse.vue'
// 元数据系统-作业过程
// let  metadataOperationprocess = resolve => {require(['@/pages/Basic/metadataOperationprocess.vue'], resolve)}
import metadataOperationprocess from '@/pages/Basic/metadataOperationprocess.vue'
// 元数据系统-客户资料
// let  metadataCustomer = resolve => {require(['@/pages/Basic/metadataCustomer.vue'], resolve)}
import metadataCustomer from '@/pages/Basic/metadataCustomer.vue'
// 元数据系统-设备信息
// let  metadataBarge = resolve => {require(['@/pages/Basic/metadataBarge.vue'], resolve)}
import DeviceInformation from '@/pages/Basic/DeviceInformation.vue'
// 元数据系统-设备信息
// let  metadataBarge = resolve => {require(['@/pages/Basic/metadataBarge.vue'], resolve)}
import DeviceType from '@/pages/Basic/DeviceType.vue'
// 元数据系统-费目管理
// let  metadataBarge = resolve => {require(['@/pages/Basic/metadataBarge.vue'], resolve)}
import feeInformation from '@/pages/Basic/feeInformation.vue'
// 元数据系统-油价信息
import oilPrice from '@/pages/Basic/oilPrice.vue'
// 元数据系统-下游客户
import downstreamCustomer from '@/pages/Basic/downstreamCustomer.vue'
// 元数据系统-模板设计
import templateDesign from '@/pages/Basic/templateDesign/index.vue'
// 元数据系统-堆场信息
import metadataYard from '@/pages/Basic/metadataYard.vue'
// 基础数据系统-工班设置
import ClassesList from '@/pages/Basic/classes/classList.vue'
// 商务业务管理 - 船舶预报
import reportingReview from '@/pages/Business/reportingReview/index'
// 商务业务管理 - 作业合同
import operationContract from '@/pages/Business/operationContract.vue'
// 商务业务管理 - 作业指令
import operationInstruction from '@/pages/Business/operationInstruction'
// 商务业务管理 - 开证公司放货
import IssuingCompany from '@/pages/Business/IssuingCompany/index'
// 商务业务管理 - 票货管理
import ticketsManage from '@/pages/Business/ticketsManage/index'
// 商务系统 - 客户审核
import customerAudit from '@/pages/Business/customerAudit/index'
// 商务系统 - 回款管理
import collectionManagement from '@/pages/Business/collectionManagement/index'
// 商务系统 - 结算单
import statement from '@/pages/Business/statement/index'
// 商务系统 - 烘干订单管理
import dryingOrder from '@/pages/Business/dryingOrder/index'
// 商务系统 - 销售订单管理
import saleOrder from '@/pages/Business/saleOrder/index'
// 商务系统 - 采购订单管理
import purchaseOrder from '@/pages/Business/purchaseOrder/index'

// 调度系统 - 作业计划
import operationPlan from '@/pages/dispatchPage/operationPlan/index'
// 调度系统 - 船舶调度
import boatDispatching from '@/pages/dispatchPage/boatDispatching/index'
// 调度系统 - 人机状态
import manMachineStatus from '@/pages/dispatchPage/manMachineStatus/index'
// 调度系统 - 船舶作业报告
import shipJobReport from '@/pages/dispatchPage/shipJobReport/index'
// 调度系统 - 作业动态监控
import dynamiCmonitor from '@/pages/dispatchPage/dynamiCmonitor/index'

// 生产系统 - 熏蒸管理
import fumigation from '@/pages/Product/fumigation/index'
// 生产系统 - 人机管理
import machineManagement from '@/pages/Product/machineManagement/index'
// 生产系统 - 零工申请
import oddJobApply from '@/pages/Product/oddJobApply/index'
import dryLabour from '@/pages/Product/dryLabour/index'
// 生产系统 - 二次配工
import secondryDispenser from '@/pages/Product/secondryDispenser/index'
// 生产系统 - 烘干管理
import dryingManagement from '@/pages/Product/dryingManagement/index'

// 库场理货 - 分票管理
import lottingManage from '@/pages/yardTallyPage/lottingManage/index'
// 库场理货 - 检尺码单
import cullCodeList from '@/pages/yardTallyPage/cullCodeList/index'
// 库场理货 - 集疏港申请
import openPortApply from '@/pages/yardTallyPage/openPortApply/index'
// 库场理货 - 货权转移
import cargoTransfer from '@/pages/yardTallyPage/cargoTransfer/index'
// 库场理货 - 库场派工
import houseYardDispatch from '@/pages/yardTallyPage/houseYardDispatch/index'
// 库场理货 - 港存动态
import portStorage from '@/pages/yardTallyPage/portStorage/index'
// 库场理货 - 港存动态
import instructionWriteoff from '@/pages/yardTallyPage/InstructionWriteoff/index'
// 库场理货 - 交接清单
import handoverList from '@/pages/yardTallyPage/handoverList/index'
// 库场理货 - 作业票管理
import signTicket from '@/pages/yardTallyPage/signTicket/index'
// 库场理货 - 装船清单
import shippingList from '@/pages/yardTallyPage/shippingList/index'
// 库场理货 - 车辆预约
import carAppointment from '@/pages/yardTallyPage/carAppointment/index'
// 库场理货 - GIS地图
import shcoordinates from '@/pages/yardTallyPage/shcoordinates/index'
// 库场理货 - 作业票调整
import ticketAdjustment from '@/pages/yardTallyPage/ticketAdjustment/index'
// 库场理货 - 转运计划
import transshipmentPlan from '@/pages/yardTallyPage/transshipmentPlan/index'

// 计费结算 - 油价协力关系
import rateCondition from '@/pages/billingSettlementSys/rateCondition/index'
// 计费结算 - 标准费率
import standardRate from '@/pages/billingSettlementSys/standardRate/index'
// 计费结算 - 协力机械费率
import mechanicsRate from '@/pages/billingSettlementSys/mechanicsRate/index'
// 计费结算 - 协力劳务费率
import labourServicesRate from '@/pages/billingSettlementSys/labourServicesRate/index'
// 计费结算 - 账期管理
import paymentDays from '@/pages/billingSettlementSys/paymentDays/index'
// 计费结算 - 船方计费
import shipCost from '@/pages/billingSettlementSys/shipCost/index'
// 计费结算 - 船方计费 - 船使费
import shipUseCost from '@/pages/billingSettlementSys/shipCost/shipUseCost/index'
// 计费结算 - 船方计费 - 船舶水电费
import shipWaterCost from '@/pages/billingSettlementSys/shipCost/shipWaterCost/index'
// 计费结算 - 船方计费 - 船舶水电费
import barkCost from '@/pages/billingSettlementSys/shipCost/barkCost/index'
// 计费结算 - 船方计费 - 船舶服务费
import shipService from '@/pages/billingSettlementSys/shipCost/shipService/index'
// 计费结算 - 货方计费
import cargoCost from '@/pages/billingSettlementSys/cargoCost/index'
// 计费结算 - 货方计费 - 港杂费
import portIncidentals from '@/pages/billingSettlementSys/cargoCost/portIncidentals/index'
// 计费结算 - 货方计费 - 分选费
import sorting from '@/pages/billingSettlementSys/cargoCost/sorting/index'
// 计费结算 - 货方计费 - 滞港费
import demurrage from '@/pages/billingSettlementSys/cargoCost/demurrage/index'
// 计费结算 - 熏蒸计费
import fumigationCost from '@/pages/billingSettlementSys/fumigationCost/index'
// 计费结算 - 检尺计费
import rulerCost from '@/pages/billingSettlementSys/rulerCost/index'
// 计费结算 - 堆存费
import storageCost from '@/pages/billingSettlementSys/storageCost/index'
// 计费结算 - 发货计费
import sendCost from '@/pages/billingSettlementSys/sendCost/index'
// 计费结算 - 陆销计费
import roudCost from '@/pages/billingSettlementSys/roudCost/index'
// 计费结算 - 陆销计费
import togetherCost from '@/pages/billingSettlementSys/togetherCost/index'

// 计费结算 - 烘干计费
import dryingCostF from '@/pages/billingSettlementSys/dryingCost/index'
// 计费结算 - 烘干计费 - 烘干计费
import dryingCost from '@/pages/billingSettlementSys/dryingCost/dryingCost/index'
// 计费结算 - 烘干计费 - 烘干劳务费
import labourCost from '@/pages/billingSettlementSys/dryingCost/labourCost/index'
// 计费结算 - 烘干计费 - 烘干堆存费
import dryingStoreCost from '@/pages/billingSettlementSys/dryingCost/dryingStoreCost/index'

// 计费结算 - 集装箱计费
import containerCostF from '@/pages/billingSettlementSys/containerCost/index'
// 计费结算 - 集装箱计费 - 集装箱计费
import containerCost from '@/pages/billingSettlementSys/containerCost/containerCost/index'
export const initRoutes = [
  {
    path: '/',
    redirect: '/login'
  },
  // 登录
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录页面'
    },
    component: resolve => {
      require(['@/pages/LoginPage/index.vue'], resolve)
    }
  },
  // 主页目录
  {
    path: '/homePage',
    component: HomePage,
    redirect: '/home',
    meta: {
      title: '首页'
    },
    children: [
      // 主页
      {
        path: '/home',
        component: Home,
        name: 'home',
        meta: {
          title: '首页'
        }
      }
    ]
  }
]
// 系统管理
export const systemSys = {
  path: '/systemSys',
  name: 'systemSys',
  component: HomePage,
  meta: {
    title: '系统管理'
  },
  children: [
    // 对外服务新闻管理
    {
      path: '/outServiceManage',
      component: outServiceManage,
      name: 'outServiceManage',
      meta: {
        title: '新闻管理'
      }
    },
    // 对外服务新闻管理
    {
      path: '/shipAnalysis',
      component: shipAnalysis,
      name: 'shipAnalysis',
      meta: {
        title: '船时效率分析'
      }
    },
    // 对外服务新闻管理列表
    {
      path: '/outServiceManageList',
      component: outServiceManageList,
      name: 'outServiceManageList',
      meta: {
        title: '新闻管理列表'
      }
    },
    // 操作日志
    {
      path: '/operationLog',
      component: operationLogList,
      name: 'operationLogList',
      meta: {
        title: '操作日志'
      }
    },
    // 登录日志
    {
      path: '/loginLog',
      component: loginLogList,
      name: 'loginLogList',
      meta: {
        title: '登录日志'
      }
    },
    // 系统参数
    {
      path: '/parameter',
      component: parameter,
      name: 'parameter',
      meta: {
        title: '系统参数'
      }
    },
    // 通用设置
    {
      path: '/systemGeneral',
      component: systemGeneral,
      name: 'systemGeneral',
      meta: {
        title: '通用设置'
      }
    },
    // 数据导入
    {
      path: '/dataImport',
      component: dataImport,
      name: 'dataImport',
      meta: {
        title: '数据导入'
      }
    },
    // 字典管理
    {
      path: '/dictionaries',
      component: DictionariesComponent,
      name: 'dictionaries',
      meta: {
        title: '字典管理'
      }
    },

    // 用户管理
    {
      path: '/userInfoManage',
      component: UserInfoManage,
      name: 'userInfoManage',
      meta: {
        title: '用户管理'
      }
    },
    // 部门管理
    {
      path: '/Department',
      component: Department,
      name: 'Department',
      meta: {
        title: '部门管理'
      }
    },
    // 角色管理
    {
      path: '/roleManage',
      component: RoleManage,
      name: 'roleManage',
      meta: {
        title: '角色管理'
      }
    },
    // 菜单管理
    {
      path: '/menuManage',
      component: MenuManage,
      name: 'menuManage',
      meta: {
        title: '菜单管理'
      }
    },

    // 版本管理
    {
      path: '/edition',
      component: edition,
      name: 'edition',
      meta: {
        title: '版本管理'
      }
    },
    // 缓存管理
    {
      path: '/cacheManagement',
      component: cacheManagement,
      name: 'cacheManagement',
      meta: {
        title: '缓存管理'
      }
    },
    // 缓存管理
    {
      path: '/authorize',
      component: authorize,
      name: 'authorize',
      meta: {
        title: '授权管理'
      }
    },
    // 消息关联用户
    {
      path: '/msgToUser',
      component: msgToUser,
      name: 'msgToUser',
      meta: {
        title: '消息管理用户'
      }
    },
    // 第三方授权
    {
      path: '/exThirdAuth',
      meta: {
        title: '第三方授权'
      },
      name: 'exThirdAuth',
      component: exThirdAuth
    },
    // 权限管理
    {
      path: '/exAuthority',
      meta: {
        title: '权限管理'
      },
      name: 'exAuthority',
      component: exAuthority
    }
  ]
}
// 元数据系统路由
export const dataSys = {
  path: '/dataSys',
  name: 'dataSys',
  component: HomePage,
  meta: {
    title: '元数据系统'
  },
  children: [
    // 客户审核
    {
      path: '/clientAudit',
      meta: {
        title: '客户审核'
      },
      name: 'clientAudit',
      component: metadataCustomerAudit
    },
    // 海轮审核
    {
      path: '/metadataSeagoingAudit',
      meta: {
        title: '海轮审核'
      },
      name: 'metadataSeagoingAudit',
      component: metadataSeagoingAudit
    },
    // 客户资料
    {
      path: '/metadataCustomer',
      meta: {
        title: '客户资料'
      },
      name: 'metadataCustomer',
      component: metadataCustomer
    },
    // 港口信息
    {
      path: '/portInfo',
      meta: {
        title: '港口信息'
      },
      name: 'portInfo',
      component: portInfo
    },
    // 货物信息
    {
      path: '/metadataGoods',
      meta: {
        title: '货物信息'
      },
      name: 'metadataGoods',
      component: metadataGoods
    },
    // 海轮资料
    {
      path: '/metadataSeagoingvessel',
      meta: {
        title: '船舶资料'
      },
      name: 'metadataSeagoingvessel',
      component: metadataSeagoingvessel
    },
    // 驳船资料
    {
      path: '/metadataBarge',
      meta: {
        title: '驳船资料'
      },
      name: 'metadataBarge',
      component: metadataBarge
    },
    // 库场信息
    {
      path: '/metadataStorehouse',
      meta: {
        title: '库场信息'
      },
      name: 'metadataStorehouse',
      component: metadataStorehouse
    },
    // 泊位信息
    {
      path: '/metadataBerth',
      meta: {
        title: '泊位信息'
      },
      name: 'metadataBerth',
      component: metadataBerth
    },
    // 停时原因
    {
      path: '/metadataStop',
      meta: {
        title: '停时原因'
      },
      name: 'metadataStop',
      component: metadataStop
    },
    // 作业过程
    {
      path: '/metadataOperationprocess',
      meta: {
        title: '作业过程'
      },
      name: 'metadataOperationprocess',
      component: metadataOperationprocess
    },
    // 机械型号
    {
      path: '/metadatamach',
      meta: {
        title: '机械型号'
      },
      name: 'metadatamach',
      component: metadatamach
    },
    // 拖轮资料
    {
      path: '/metadataTug',
      meta: {
        title: '拖轮资料'
      },
      name: 'metadataTug',
      component: metadataTug
    },
    // 设备信息
    {
      path: '/deviceInformation',
      component: DeviceInformation,
      name: 'deviceInformation',
      meta: {
        title: '设备信息'
      }
    },
    // 工班设置
    {
      path: '/classList',
      meta: {
        title: '工班设置'
      },
      name: 'classList',
      component: ClassesList
    },
    // 设备类型
    {
      path: '/deviceType',
      component: DeviceType,
      name: 'deviceType',
      meta: {
        title: '设备类型'
      }
    },
    // 设费目管理
    {
      path: '/feeInformation',
      component: feeInformation,
      name: 'feeInformation',
      meta: {
        title: '费目信息'
      }
    },
    // 油价信息
    {
      path: '/oilPrice',
      meta: {
        title: '油价信息'
      },
      name: 'oilPrice',
      component: oilPrice
    },
    // 下游客户
    {
      path: '/downstreamCustomer',
      meta: {
        title: '下游客户'
      },
      name: 'downstreamCustomer',
      component: downstreamCustomer
    },
    // 模板设计
    {
      path: '/templateDesign',
      meta: {
        title: '模板设计'
      },
      name: 'templateDesign',
      component: templateDesign
    },

    // 堆场信息
    {
      path: '/metadataYard',
      meta: {
        title: '堆场信息'
      },
      name: 'metadataYard',
      component: metadataYard
    }
  ]
}
// 商务业务管理
export const businessSys = {
  path: '/businessSys',
  name: 'businessSys',
  component: HomePage,
  meta: {
    title: '商务业务管理'
  },
  children: [
    // 船舶预报
    {
      path: '/reportingReview',
      component: reportingReview,
      name: 'reportingReview',
      meta: {
        title: '船舶预报'
      }
    },
    // 作业合同
    {
      path: '/operationContract',
      component: operationContract,
      name: 'operationContract',
      meta: {
        title: '作业合同'
      }
    },
    // 销售订单
    {
      path: '/saleOrder',
      component: saleOrder,
      name: 'saleOrder',
      meta: {
        title: '销售订单'
      }
    },
    // 采购订单
    {
      path: '/purchaseOrder',
      component: purchaseOrder,
      name: 'purchaseOrder',
      meta: {
        title: '采购订单'
      }
    },
    // 作业指令
    {
      path: '/operationInstruction',
      component: operationInstruction,
      name: 'operationInstruction',
      meta: {
        title: '作业指令'
      }
    },
    // 开证公司放货
    {
      path: '/IssuingCompany',
      component: IssuingCompany,
      name: 'IssuingCompany',
      meta: {
        title: '开证公司放货'
      }
    },
    // 票货管理
    {
      path: '/ticketsManage',
      component: ticketsManage,
      name: 'ticketsManage',
      meta: {
        title: '票货管理'
      }
    },
    // 客户审核
    {
      path: '/customerAudit',
      component: customerAudit,
      name: 'customerAudit',
      meta: {
        title: '客户审核'
      }
    },
    // 回款管理
    {
      path: '/collectionManagement',
      component: collectionManagement,
      name: 'collectionManagement',
      meta: {
        title: '回款管理'
      }
    },
    // 结算单
    {
      path: '/statement',
      component: statement,
      name: 'statement',
      meta: {
        title: '结算单'
      }
    },
    // 烘干订单管理
    {
      path: '/dryingOrder',
      component: dryingOrder,
      name: 'dryingOrder',
      meta: {
        title: '烘干订单管理'
      }
    }
  ]
}
export const dispatchSys = {
  path: '/dispatchSys',
  name: 'dispatchSys',
  component: HomePage,
  meta: {
    title: '调度指挥管理'
  },
  children: [
    // 人工状态
    {
      path: '/manMachineStatus',
      component: manMachineStatus,
      name: 'manMachineStatus',
      meta: {
        title: '人机状态'
      }
    },
    // 作业计划
    {
      path: '/operationPlan',
      component: operationPlan,
      name: 'operationPlan',
      meta: {
        title: '作业计划'
      }
    },
    // 船舶调度
    {
      path: '/boatDispatching',
      component: boatDispatching,
      name: 'boatDispatching',
      meta: {
        title: '船舶调度'
      }
    },
    // 船舶作业报告
    {
      path: '/shipJobReport',
      component: shipJobReport,
      name: 'shipJobReport',
      meta: {
        title: '船舶作业报告'
      }
    },
    // 作业动态监控
    {
      path: '/dynamiCmonitor',
      component: dynamiCmonitor,
      name: 'dynamiCmonitor',
      meta: {
        title: '作业动态监控'
      }
    }
  ]
}
// 生产管理
export const ProductSys = {
  path: '/ProductSys',
  name: 'ProductSys',
  component: HomePage,
  meta: {
    title: '生产业务管理'
  },
  children: [
    // 熏蒸管理
    {
      path: '/fumigation',
      component: fumigation,
      name: 'fumigation',
      meta: {
        title: '熏蒸管理'
      }
    },
    {
      path: '/dryLabour',
      component: dryLabour,
      name: 'dryLabour',
      meta: {
        title: '烘干劳务'
      }
    },
    // 零工申请
    {
      path: '/oddJobApply',
      component: oddJobApply,
      name: 'oddJobApply',
      meta: {
        title: '零工申请'
      }
    },
    // 人机管理
    {
      path: '/machineManagement',
      component: machineManagement,
      name: 'machineManagement',
      meta: {
        title: '人机管理'
      }
    },
    // 二次配工
    {
      path: '/secondryDispenser',
      component: secondryDispenser,
      name: 'secondryDispenser',
      meta: {
        title: '二次配工'
      }
    },
    // 烘干管理
    {
      path: '/dryingManagement',
      component: dryingManagement,
      name: 'dryingManagement',
      meta: {
        title: '烘干管理'
      }
    }
  ]
}
// 库场理货管理
export const yardTallySys = {
  path: '/yardTallySys',
  name: 'yardTallySys',
  component: HomePage,
  meta: {
    title: '库场理货管理'
  },
  children: [
    // 分票管理
    {
      path: '/lottingManage',
      component: lottingManage,
      name: 'lottingManage',
      meta: {
        title: '分票管理'
      }
    },
    // 作业票管理
    {
      path: '/signTicket',
      component: signTicket,
      name: 'signTicket',
      meta: {
        title: '作业票管理'
      }
    },
    // 装船清单
    {
      path: '/shippingList',
      component: shippingList,
      name: 'shippingList',
      meta: {
        title: '装船清单'
      }
    },
    // 检尺码单
    {
      path: '/cullCodeList',
      component: cullCodeList,
      name: 'cullCodeList',
      meta: {
        title: '检尺码单'
      }
    },
    // 集疏港申请
    {
      path: '/openPortApply',
      component: openPortApply,
      name: 'openPortApply',
      meta: {
        title: '集疏港申请'
      }
    },
    // 货权转移
    {
      path: '/cargoTransfer',
      component: cargoTransfer,
      name: 'cargoTransfer',
      meta: {
        title: '货权转移'
      }
    },
    // 车辆预约
    {
      path: '/carAppointment',
      component: carAppointment,
      name: 'carAppointment',
      meta: {
        title: '车辆预约'
      }
    },
    // gis地图
    {
      path: '/shcoordinates',
      component: shcoordinates,
      name: 'shcoordinates',
      meta: {
        title: 'GIS地图'
      }
    },
    // 作业票调整
    {
      path: '/ticketAdjustment',
      component: ticketAdjustment,
      name: 'ticketAdjustment',
      meta: {
        title: '作业票调整'
      }
    },
    // 库场派工
    {
      path: '/houseYardDispatch',
      component: houseYardDispatch,
      name: 'houseYardDispatch',
      meta: {
        title: '库场派工'
      }
    },
    // 港存动态
    {
      path: '/portStorage',
      component: portStorage,
      name: 'portStorage',
      meta: {
        title: '港存动态'
      }
    },
    // 交接清单
    {
      path: '/handoverList',
      component: handoverList,
      name: 'handoverList',
      meta: {
        title: '交接清单'
      }
    },
    // 指令核销
    {
      path: '/instructionWriteoff',
      component: instructionWriteoff,
      name: 'instructionWriteoff',
      meta: {
        title: '指令核销'
      }
    },
    // 转运申请
    {
      path: '/transshipmentPlan',
      component: transshipmentPlan,
      name: 'transshipmentPlan',
      meta: {
        title: '转运申请'
      }
    },
  ]
}
// 计费结算管理
export const billingSettlementSys = {
  path: '/billingSettlementSys',
  name: 'billingSettlementSys',
  component: HomePage,
  meta: {
    title: '计费结算管理'
  },
  children: [
    // 标准费率
    {
      path: '/standardRate',
      component: standardRate,
      name: 'standardRate',
      meta: {
        title: '标准费率'
      }
    },
    // 协力机械费率
    {
      path: '/mechanicsRate',
      component: mechanicsRate,
      name: 'mechanicsRate',
      meta: {
        title: '协力机械费率'
      }
    },
    // 协力劳务费率
    {
      path: '/labourServicesRate',
      component: labourServicesRate,
      name: 'labourServicesRate',
      meta: {
        title: '协力劳务费率'
      }
    },
    // 账期管理
    {
      path: '/paymentDays',
      component: paymentDays,
      name: 'paymentDays',
      meta: {
        title: '账期管理'
      }
    },
    // 船方计费
    {
      path: '/shipCost',
      component: shipCost,
      name: 'shipCost',
      meta: {
        title: '船方计费'
      },
      children: [
        {
          path: '/shipUseCost',
          component: shipUseCost,
          name: 'shipUseCost',
          meta: {
            title: '船使费'
          }
        },
        {
          path: '/shipWaterCost',
          component: shipWaterCost,
          name: 'shipWaterCost',
          meta: {
            title: '船舶水电费'
          }
        },
        {
          path: '/barkCost',
          component: barkCost,
          name: 'barkCost',
          meta: {
            title: '树皮清舱熏蒸费'
          }
        },
        {
          path: '/shipService',
          component: shipService,
          name: 'shipService',
          meta: {
            title: '船舶服务费'
          }
        }

      ]
    },
    // 货方计费
    {
      path: '/cargoCost',
      component: cargoCost,
      name: 'cargoCost',
      meta: {
        title: '货方计费'
      },
      children: [
        {
          path: '/portIncidentals',
          component: portIncidentals,
          name: 'portIncidentals',
          meta: {
            title: '港杂费'
          }
        },
        {
          path: '/sorting',
          component: sorting,
          name: 'sorting',
          meta: {
            title: '分选费'
          }
        },
        {
          path: '/demurrage',
          component: demurrage,
          name: 'demurrage',
          meta: {
            title: '滞港费'
          }
        }
      ]
    },
    // 熏蒸计费
    {
      path: '/fumigationCost',
      component: fumigationCost,
      name: 'fumigationCost',
      meta: {
        title: '熏蒸计费'
      }
    },
    // 检尺计费
    {
      path: '/rulerCost',
      component: rulerCost,
      name: 'rulerCost',
      meta: {
        title: '检尺计费'
      }
    },
    // 堆存计费
    {
      path: '/storageCost',
      component: storageCost,
      name: 'storageCost',
      meta: {
        title: '堆存计费'
      }
    },
    // 发货计费
    {
      path: '/sendCost',
      component: sendCost,
      name: 'sendCost',
      meta: {
        title: '发货计费'
      }
    },
    // 陆销计费
    {
      path: '/roudCost',
      component: roudCost,
      name: 'roudCost',
      meta: {
        title: '陆销计费'
      }
    },
    // 烘干计费
    {
      path: '/dryingCost',
      component: dryingCostF,
      name: 'dryingCost',
      meta: {
        title: '烘干计费'
      },
      children: [
        {
          path: '/dryingCost',
          component: dryingCost,
          name: 'dryingCost',
          meta: {
            title: '烘干计费'
          }
        },
        {
          path: '/labourCost',
          component: labourCost,
          name: 'labourCost',
          meta: {
            title: '烘干劳务费'
          }
        },
        {
          path: '/dryingStoreCost',
          component: dryingStoreCost,
          name: 'dryingStoreCost',
          meta: {
            title: '烘干堆存费'
          }
        }
      ]
    },
    // 集装箱计费
    {
      path: '/containerCost',
      component: containerCostF,
      name: 'containerCost',
      meta: {
        title: '集装箱计费'
      },
      children: [
        {
          path: '/containerCost',
          component: containerCost,
          name: 'containerCost',
          meta: {
            title: '集装箱计费'
          }
        }
      ]
    },
    // 协力计费
    {
      path: '/togetherCost',
      component: togetherCost,
      name: 'togetherCost',
      meta: {
        title: '协力计费'
      }
    },
    // 油价协力关系
    {
      path: '/rateCondition',
      component: rateCondition,
      name: 'rateCondition',
      meta: {
        title: '油价协力关系'
      }
    }
  ]
}
// 所有上面定义的路由都要写在下面的routers里
export const routers = [
  ...initRoutes,
  dataSys,
  systemSys,
  businessSys,
  dispatchSys,
  ProductSys,
  yardTallySys,
  billingSettlementSys
]
